/**
 * @author liuxin
 * @e-mail lxtobe5@gmail.com
 * @update 2011.11.19
 * @prompt If you find my mistake, please contact with me via my e-mail.
 */
package DesignPattern_sample.DecoratorPattern
{
	import flash.display.Sprite;

	public class DecoratorClient extends Sprite
	{
		public function DecoratorClient()
		{
			var cc:DecorateObject = new DecorateObject();
			var cdtor1:ConcreteDecorator1 = new ConcreteDecorator1();
			var cdtor2:ConcreteDecorator2 = new ConcreteDecorator2();
			var cdtor3:ConcreteDecorator3 = new ConcreteDecorator3();
			
			cdtor1.setDecorateObject(cc);
			cdtor2.setDecorateObject(cdtor1);
			cdtor3.setDecorateObject(cdtor2);
			cdtor3.decorate();
		}
	}
}